package com.study.juc2;

import java.time.LocalDate;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author study
 * @version 1.0
 * @date 2020/9/21 12:09
 */
class ShareResource {
    private Lock lock = new ReentrantLock();

    private Condition condition = lock.newCondition();

    public void print5() {
        lock.lock();
        try {

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            lock.unlock();
        }
    }
}

public class ThreadOrderAccess {
}
